package com.cskaoyan.ribbon.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 创建日期: 2023/01/06 14:08
 *
 * @author ciggar
 */

@Configuration
public class RibbonConfig {

    @Bean
    public IRule iRule(){
        return new MyRibbonRule();
    }
}
